//
//  City.m
//  JLStyleApp
//
//  Created by LvJianfeng on 15/8/21.
//  Copyright (c) 2015年 JLStyle. All rights reserved.
//

#import "City.h"

@implementation City 

//To Object
+ (City *)fromCursor:(FMResultSet *)rs{
    City *vo = [[City alloc] init];
    vo.cid = [rs intForColumn:@"id"];
    vo.name = [rs stringForColumn:@"name"];
    return vo;
}

+ (City *)fromCursorCity:(FMResultSet *)rs{
    City *vo = [[City alloc] init];
    vo.cid = [rs intForColumn:@"id"];
    vo.name = [rs stringForColumn:@"name"];
    vo.pid = [rs intForColumn:@"pid"];
    return vo;
}

@end
